<template>
    <div>
        <iframe
            src="https://zhikujiapu.oss-cn-hangzhou.aliyuncs.com/linandifangwenxianshujukuxitongoss-01_02_01_00009_%E4%B8%B4%E5%AE%89%E5%B9%B4%E9%89%B41994-01_02_01_00009_%E4%B8%B4%E5%AE%89%E5%B9%B4%E9%89%B41994-25.pdf"
            id="iframe123" frameborder="0" class="ifr"></iframe>
    </div>
</template>

<script>
export default {
    name: '',
    components: {
    },
    data() {
        return {}
    },
    created() {
    },
    mounted() {
        var doc = new jsPDF({
            unit: "px",
            format: [200, 300],
            floatPrecision: 2
        });
        // doc.textWithLink("Click me!", 10, 10, {
        //     url: "https://parall.ax/"
        // });

        // doc.text("This is the default font.", 20, 20);
        doc.createAnnotation({
            type: "text",
            title: "note",
            bounds: {
                x: 10,
                y: 10,
                w: 200,
                h: 80
            },
            contents: "This is text annotation (closed by default)",
            open: false
        });

        // doc.setFont("courier", "normal");
        // doc.text("This is courier normal.", 20, 30);

        // doc.setFont("times", "italic");
        // doc.text("This is times italic.", 20, 40);

        // doc.setFont("helvetica", "bold");
        // doc.text("This is helvetica bold.", 20, 50);

        // doc.setFont("courier", "bolditalic");
        // doc.text("This is courier bolditalic.", 20, 60);

        // doc.setFont("times", "normal");
        // doc.text("This is centred text.", 105, 80, null, null, "center");
        // doc.text("And a little bit more underneath it.", 105, 90, null, null, "center");
        // doc.text("This is right aligned text", 200, 100, null, null, "right");
        // doc.text("And some more", 200, 110, null, null, "right");
        // doc.text("Back to left", 20, 120);

        // doc.text("10 degrees rotated", 20, 140, null, 10);
        // doc.text("-10 degrees rotated", 20, 160, null, -10);
        // doc.output('dataurlnewwindow', "https://zhikujiapu.oss-cn-hangzhou.aliyuncs.com/linandifangwenxianshujukuxitongoss-01_02_01_00009_%E4%B8%B4%E5%AE%89%E5%B9%B4%E9%89%B41994-01_02_01_00009_%E4%B8%B4%E5%AE%89%E5%B9%B4%E9%89%B41994-25.pdf");

        // document.getElementById("iframe123").src = doc.output('dataurl');//在iframe中显示
        // let data = doc.output('datauristring', "https://zhikujiapu.oss-cn-hangzhou.aliyuncs.com/linandifangwenxianshujukuxitongoss-01_02_01_00009_%E4%B8%B4%E5%AE%89%E5%B9%B4%E9%89%B41994-01_02_01_00009_%E4%B8%B4%E5%AE%89%E5%B9%B4%E9%89%B41994-25.pdf");
        // var objbuilder = '';
        // objbuilder += ('<embed width=\'100%\' height=\'100%\'  src="');
        // objbuilder += (data);
        // objbuilder += ('" type="application/pdf" title="' + 1 + '.pdf"  />');
        // document.getElementById("iframe123").innerHTML = objbuilder


    },
    methods: {},
}
</script> 

<style scoped>
.ifr {}
</style>
